package com.ys.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.common.utils.PageUtils;
import com.ys.gulimall.product.entity.SkuInfoEntity;
import com.ys.gulimall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author yeswater
 * @email ruobairuo@gmail.com
 * @date 2021-07-16 16:28:06
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
	
	void saveSkuInfo(SkuInfoEntity skuInfoEntity);
	
	PageUtils queryPageCondition(Map<String, Object> params);
	
	List<SkuInfoEntity> getSkusBySpuId(Long spuId);
	
	SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

